//package com.jd.controller;
//
//import com.alibaba.csp.sentinel.adapter.gateway.common.api.ApiDefinition;
//import com.alibaba.csp.sentinel.adapter.gateway.common.api.GatewayApiDefinitionManager;
//import com.alibaba.csp.sentinel.adapter.gateway.common.rule.GatewayFlowRule;
//import com.alibaba.csp.sentinel.adapter.gateway.common.rule.GatewayRuleManager;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.Set;
//
//@RestController
//public class FlowRulesController {
//
//    @GetMapping("/gateway")
//    public Set<GatewayFlowRule> flowRules(){
//        return GatewayRuleManager.getRules();
//    }
//
//    @GetMapping("/api")
//    public Set<ApiDefinition> apiDefinitions(){
//        return GatewayApiDefinitionManager.getApiDefinitions();
//    }
//}